package lab02.Test11;

/**
 * Created by mac on 2017/10/25.
 */
public class Square extends Rectangle {
    double diagonal(){
        return (Math.sqrt(longth*longth*2));
    }

    @Override
    public void PrintMyWay() {
        System.out.println(diagonal());
    }
}

